Skip to content

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Oct 13, 2025

When I tested #2199 I was a EuroRust on a not so great internet connection so I only tested on relatively "small" GHA logs (~30000 lines) and the perf was okay.

But when I went yesterday evening on https://triage.rust-lang.org/gha-logs/rust-lang/rust/52553156046 (which is ~80000 lines) the load of the page was very long, which isn't too surprising since the logs it-self is ~5Mio it-self, so I looked more in details as to why it is taking ~50s on my PC with Firefox to render the logs and realized that #2199 destroyed the perf by making the layout calculation in Firefox do much much more work. (Chrome is better but still slower than before)

To fix this perf regression and still make the timestamps not part of the copy, I switched the DOM to use an HTML table whose first column is the timestamps (which have user-select: none to prevent copy) and the second column is the log line.

For context, with #2199 the layout calculation was 39s and with this PR it's only ~2.5s on my PC.

Best review commit by commit.

image

…uncopy"

This reverts commit b6ec119, reversing
changes made to a983074.
@Urgau Urgau requested a review from Kobzol October 13, 2025 10:20
@Urgau Urgau force-pushed the gha-logs-fix-perf branch from d6fb7a4 to 79d316e Compare October 13, 2025 10:24
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol, webdev is hard.

View changes since this review

@Urgau Urgau added this pull request to the merge queue Oct 13, 2025
@Urgau Urgau removed this pull request from the merge queue due to a manual request Oct 13, 2025
@Urgau Urgau force-pushed the gha-logs-fix-perf branch from 79d316e to c5b3e75 Compare October 13, 2025 16:27
@Urgau Urgau added this pull request to the merge queue Oct 13, 2025
Merged via the queue into rust-lang:master with commit 820288b Oct 13, 2025
3 checks passed
@Urgau Urgau deleted the gha-logs-fix-perf branch October 13, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants